<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%@ include file="/WEB-INF/jsp/sys/uploader.jsp" %>
<%@page import="com.centit.util.RequestUtil" %>

<html lang="zh-cmn-Hans">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/plugin/css/index.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/ztree/js/jquery.ztree.all.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/plugin/js/selectTree.js"></script>
<script type="text/javascript"	src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/ctrl/airplanebaseinfoBl.js"></script>
<style type="text/css">
.layui-form-select{
width: 80%;
float: left;
}
.layui-input, .layui-select, .layui-textarea{
border-width: 0px;
}
.stream-main-upload-box {
        border: none;
    }

    .centit-uploader .uploaded-files li {
        padding: 10px 20px 10px 10px;
    }
    .uploaded-delete{
    display: none;
    }
</style>
<script type="text/javascript">
function frameWH() {
    var processLogPageframe = document.getElementById("processLogPage");
    var stuffPageIframe = document.getElementById("stuffPage");
    if (navigator.userAgent.indexOf("MSIE") > 0 || navigator.userAgent.indexOf("rv:11") > 0 || navigator.userAgent.indexOf("Firefox") > 0) {
        if (processLogPageframe != null) {
            processLogPageframe.height = processLogPageframe.contentWindow.document.body.scrollHeight;
        }
        if (stuffPageIframe != null) {
            stuffPageIframe.height = stuffPageIframe.contentWindow.document.body.scrollHeight;
        }
    } else {
        if (processLogPageframe != null) {
            processLogPageframe.height = processLogPageframe.contentWindow.document.documentElement.scrollHeight;
        }
        if (stuffPageIframe != null) {
            stuffPageIframe.height = stuffPageIframe.contentWindow.document.documentElement.scrollHeight;
        }
    }
}
function frameWHTimeOut() {
    setTimeout(function () {
        var processLogPageframe = document.getElementById("processLogPage");
        var stuffPageIframe = document.getElementById("stuffPage");
        if (navigator.userAgent.indexOf("MSIE") > 0 || navigator.userAgent.indexOf("rv:11") > 0 || navigator.userAgent.indexOf("Firefox") > 0) {
            if (processLogPageframe != null) {
                processLogPageframe.height = processLogPageframe.contentWindow.document.body.scrollHeight;
            }
            if (stuffPageIframe != null) {
                stuffPageIframe.height = stuffPageIframe.contentWindow.document.body.scrollHeight;
            }
        } else {
            if (processLogPageframe != null) {
                processLogPageframe.height = processLogPageframe.contentWindow.document.documentElement.scrollHeight;
            }
            if (stuffPageIframe != null) {
                stuffPageIframe.height = stuffPageIframe.contentWindow.document.documentElement.scrollHeight;
            }
        }
    }, 500)
}

</script>
</head>
<body>
	<form class="layui-form" action="" style="padding: 10px"
		lay-filter="azdbqryForm">
		<input type="hidden" name="recId" id="recId" value="${object.recId}">
		<input type="hidden" name="flowRecId" id="flowRecId" value="${object.flowInsId}">
		<table class="viewTable">
			<tr>
				<th >飞机状态</th>
				<td>
					<c:forEach items="${cp:DICTIONARY('AIRZT')}" var="row">
				         			<c:if test="${object.airZt eq row.dataCode }">
				         			<input type="text" name="txt1" id="txt1" class="layui-input" lay-verify="required" value="${row.dataValue }" readonly="readonly">
				         			</c:if>
				   				</c:forEach>
					<%-- <select name="airZt" class="layui-input" lay-filter="airZt" id="airZt" lay-verify="required"  value="${object.airZt}" disabled="disabled">
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRZT')}" var="row">
				         			<option value="${row.dataCode }" <c:if test="${object.airZt eq row.dataCode }">selected="selected"</c:if> >${row.dataValue }</option>
				   				</c:forEach>
					</select> --%>
				</td>
				<th>飞机性质</th>
				<td>
				<c:forEach items="${cp:DICTIONARY('AIRXZ')}" var="row">
				         			 <c:if test="${object.nature eq row.dataCode }">
				         			 <input type="text" name="txt2" id="txt2" class="layui-input" lay-verify="required" value="${row.dataValue }" readonly="readonly"></c:if>
				   				</c:forEach>
				
					<%-- <select name="nature" class="layui-input" lay-filter="nature" id="nature" lay-verify="required"  value="${object.nature}" disabled="disabled">
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRXZ')}" var="row">
				         			<option value="${row.dataCode }" <c:if test="${object.nature eq row.dataCode }">selected="selected"</c:if> >${row.dataValue }</option>
				   				</c:forEach>
					</select> --%>
				</td>
			</tr>
			<tr>
			<th >国籍标志和登记标志</th>
				<td>
					<input type="text" name="sign" id="sign" class="layui-input" lay-verify="required" value="${object.sign}" readonly="readonly">
				</td>
			<th>租赁到期日期</th>
				<td>
					<input type="text" name="endTime" id="endTime" class="layui-input" lay-verify="required" value="<fmt:formatDate value='${object.endTime}' pattern='yyyy-MM-dd'/>"  disabled="disabled">
				</td>
				
			</tr>
			
			<tr>
			<th>航空器型号和制造人</th>
				<td>
					<input type="text" name="airModel" id="airModel" class="layui-input" lay-verify="required" value="${object.airModel}" readonly="readonly">
				</td>
				<th >航空器出厂序列号</th>
				<td>
					<input type="text" name="ccxlh" id="ccxlh" class="layui-input" lay-verify="required" value="${object.ccxlh}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >出厂日期</th>
				<td>
					<input type="text" name="proctionDate" id="proctionDate" class="layui-input" lay-verify="required"  value="<fmt:formatDate value='${object.proctionDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
				<th >调机日期</th>
				<td>
					<input type="text" name="useDate" id="useDate" class="layui-input" lay-verify="required" value="<fmt:formatDate value='${object.useDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
			</tr>
			<tr>
				<th >注销日期</th>
				<td>
					<input type="text" name="offDate" id="offDate" class="layui-input"  value="<fmt:formatDate value='${object.offDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
				<th >本证发给</th>
				<td>
				<input type="text" name="bzfj" id="bzfj" class="layui-input" lay-verify="required"  value="${object.bzfj}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >Engine serie</th>
				<td>
					<input type="text" name="engineS" id="engineS" class="layui-input" lay-verify="required"  value="${object.engineS}" readonly="readonly">
				</td>
				<th >Engine</th>
				<td>
					<input type="text" name="engine" id="engine" class="layui-input" lay-verify="required" value="${object.engine}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >1st engine SN（出厂序号）</th>
				<td>
					<input type="text" name="oneSn" id="oneSn" class="layui-input" lay-verify="required"  value="${object.oneSn}" readonly="readonly">
				</td>
				<th >2nd engine SN（出厂序号）</th>
				<td>
					<input type="text" name="twoSn" id="twoSn" class="layui-input" lay-verify="required" value="${object.twoSn}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >国籍登记证编号</th>
				<td>
				<input type="text" name="gjNo" id="gjNo" class="layui-input" lay-verify="required"  value="${object.gjNo}" readonly="readonly">
				</td>
				<th >国籍登记证签发日期</th>
				<td>
					<input type="text" name="gjDate" id="gjDate" class="layui-input" lay-verify="required" value="<fmt:formatDate value='${object.gjDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
			</tr>
			<tr>
				<th >所有人名称</th>
				<td>
					<input type="text" name="haveName" id="haveName" class="layui-input" lay-verify="required"  value="${object.haveName}" readonly="readonly">
				</td>
				<th >所有人地址</th>
				<td>
				<input type="text" name="haveAddr" id="haveAddr" class="layui-input" lay-verify="required"  value="${object.haveAddr}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >运营人</th>
				<td>
					<input type="text" name="yyName" id="yyName" class="layui-input" lay-verify="required"  value="${object.yyName}" readonly="readonly">
				</td>
				<th >运营人地址</th>
				<td>
				<input type="text" name="yyAddr" id="yyAddr" class="layui-input" lay-verify="required"  value="${object.yyAddr}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >标准适航证编号</th>
				<td>
					<input type="text" name="shNo" id="shNo" class="layui-input" lay-verify="required"  value="${object.shNo}" readonly="readonly">
				</td>
				<th >标准适航证签发日期</th>
				<td>
				<input type="text" name="qfDate" id="qfDate" class="layui-input" lay-verify="required"  value="<fmt:formatDate value='${object.qfDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
			</tr>
			<tr>
				<th >航空器地址编码（S模式）HEX</th>
				<td>
				<input type="text" name="addrNoHex" id="addrNoHex" class="layui-input" lay-verify="required"  value="${object.addrNoHex}" readonly="readonly">
				</td>
				<th >航空器地址编码（S模式）OCT</th>
				<td>
				<input type="text" name="addrNoOct" id="addrNoOct" class="layui-input" lay-verify="required"  value="${object.addrNoOct}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >选择呼叫代码</th>
				<td>
					<input type="text" name="hjNo" id="hjNo" class="layui-input" lay-verify="required"  value="${object.hjNo}" readonly="readonly">
				</td>
				<th >电台执照序号</th>
				<td>
					<input type="text" name="dtNo" id="dtNo" class="layui-input" lay-verify="required"  value="${object.dtNo}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th >电台执照有效期限</th>
				<td>
				<input type="text" name="dtyxDate" id="dtyxDate" class="layui-input" lay-verify="required"  value="<fmt:formatDate value='${object.dtyxDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
				<th >电台执照颁发日期</th>
				<td>
					<input type="text" name="dtbfDate" id="dtbfDate" class="layui-input" lay-verify="required"  value="<fmt:formatDate value='${object.dtbfDate}' pattern='yyyy-MM-dd'/>" disabled="disabled">
				</td>
			</tr>
			<tr>
			<th>飞机原值</th>
			<td><input type="text" name="fjyz" id="fjyz"
					class="layui-input" lay-verify="required"
					value="${object.fjyz}" readonly="readonly"></td>
			<th>飞机残值</th>
			<td><input type="text" name="fjcz" id="fjcz"
					class="layui-input" lay-verify="required"
					value="${object.fjcz}" readonly="readonly"></td>
					</tr>
				<tr>
			<th>保险信息</th>
			<td><input type="text" name="bxxx" id="bxxx"
					class="layui-input" lay-verify="required"
					value="${object.bxxx}" readonly="readonly"></td>
			
			<th>租金币种</th>
			<td>
			<c:forEach items="${cp:DICTIONARY('BZ')}" var="row">
				         			<c:if test="${object.zjbz eq row.dataCode }">
				         			<input type="text" name="txt3" id="txt3" class="layui-input"  value="${row.dataValue }" readonly="readonly">
				         			</c:if>
				   				</c:forEach>
			</td>
			</tr>
				<tr>
			<th>每期租金</th>
			<td><input type="text" name="mqzj" id="mqzj"
					class="layui-input" lay-verify="required"
					value="${object.mqzj}" readonly="readonly"></td>
			<th>租金支付期间</th>
			<td><input type="text" name="zjzfqj" id="zjzfqj" 
					class="layui-input" lay-verify="required" 
					value="${object.zjzfqj}" readonly="readonly"></td>
			</tr>
			<tr>
				<th>电台证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="dtz" name="dtz"  value="${object.dtz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>适航证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="shz" name="shz"  value="${object.shz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>国籍证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="gjz" name="gjz"  value="${object.gjz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>飞机合同</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="ht" name="ht"  value="${object.ht}" />
	                        </div>
	                    </td>
			</tr>
		</table>

		   <div class="layui-tab layui-tab-brief moduleTabs" style="height:auto;" lay-filter="tabs">
            <ul class="layui-tab-title" style="border-bottom-width: 0px;margin-left:10px;font-weight:bold;">
                <li class="layui-this" >办理日志</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe id="processLogPage" style="width: 100%;" scrolling="no" frameborder="0" marginheight="0"
                            marginwidth="0" onload="frameWH()" src=""></iframe>
                </div>
            </div>
        </div>

		<div style="text-align: center; margin-top: 20px">
			 <button class="layui-btn layui-btn-primary" onclick="CloseWin()">关闭</button> 
		</div>
	</form>
	<script>
var basePath= "${pageContext.request.contextPath}";
</script>

 <script type="text/javascript">
 window.UploaderPath='${cp:SYS_VALUE("uploaderpath")}/';
	index = setInterval(setUpload, '1000');
	function setUpload() {
	    try {
	    	  if (typeof $('#dtz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#dtz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	    	//如果是查看的需要去除附件中的操作按钮
	            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
	            $("#i_select_files_upload_demo_0").find("button").remove();
	            $("#i_select_files_upload_demo1_0").find("button").remove(); 
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#shz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#shz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	    	//如果是查看的需要去除附件中的操作按钮
	            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
	            $("#i_select_files_upload_demo_0").find("button").remove();
	            $("#i_select_files_upload_demo1_0").find("button").remove(); 
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#gjz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#gjz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	    	//如果是查看的需要去除附件中的操作按钮
	            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
	            $("#i_select_files_upload_demo_0").find("button").remove();
	            $("#i_select_files_upload_demo1_0").find("button").remove(); 
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#ht', null).uploader === "function") { 
	              clearInterval(index);
	              $('#ht', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	    	//如果是查看的需要去除附件中的操作按钮
	            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
	            $("#i_select_files_upload_demo_0").find("button").remove();
	            $("#i_select_files_upload_demo1_0").find("button").remove(); 
	      } catch (e) {
	      }
	  }
	function numFormat(num) {
        var c = (num.toString().indexOf ('.') !== -1) ? num.toLocaleString() : num.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
        return c;
    }
	
	$(document).ready(function(){
		$("#mqzj").val(numFormat($("#mqzj").val()));
	});
 </script>
</body>
</html>
